﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CreativeMatrix.RemoteMedia.NetCore
{
	public static class Utility
	{
		private static NetCoreModel _model = NetCoreModel.GetIntance();

		public static List<Student> GetUsers(string username)
		{
			if (string.IsNullOrEmpty(username))	// all user
			{
				return _model.Users;
			}
			else
			{
				List<Student> userList = new List<Student>(1);
				Student user = _model.GetUser(username);

				if (user != null)
					userList.Add(user);

				return userList;
			}
		}
	}
}